package app

import (
    "github.com/gin-gonic/gin"
    "ginweb/api/v1"
    "ginweb/internal/controller"
)

// RegisterRoutes 注册所有路由
func RegisterRoutes(r *gin.RouterGroup, userController *controller.UserController, productController *controller.ProductController) {
    v1.RegisterUserRoutes(r.Group("/api/v1"), userController)
    v1.RegisterProductRoutes(r.Group("/api/v1"), productController)
}